# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := psparser

LOCAL_C_INCLUDES := \
	../../src \
	../../src/inc \
	../../src/objs \
	../../src/oprds \
	../../src/parser \
	../../src/graphics \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/animator \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/config \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/core \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/device \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/effects \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/gpu \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/images \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/pdf \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/pipe \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/ports \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/svg \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/text \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/utils \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/views \
	../../../../Thirdparty/skia-dev/trunk-android/trunk//include/xml \
	
LOCAL_CPP_FEATURES := exceptions rtti

LOCAL_CPPFLAGS := -g -std=gnu++11 -DANDROID -DENABLE_SHORT_LOG -DSK_BUILD_FOR_ANDROID -DSK_BUILD_FOR_ANDROID_NDK #-DLANG_DEBUG 

LOCAL_SRC_FILES := \
	../../src/graphics/SkiaGraphicState.cpp \
	../../src/objs/DoArray.cpp \
	../../src/objs/DoBoolean.cpp \
	../../src/objs/DoComment.cpp \
	../../src/objs/_DoCompositeObject.cpp \
	../../src/objs/DoDictionary.cpp \
	../../src/objs/_DoDictionaryMultimap.cpp \
	../../src/objs/DoFile.cpp \
	../../src/objs/_DoFileFilter.cpp \
	../../src/objs/_DoFontId.cpp \
	../../src/objs/_DoGraphicState.cpp \
	../../src/objs/DoName.cpp \
	../../src/objs/DoNumber.cpp \
	../../src/objs/_DoObject.cpp \
	../../src/objs/_DoOperator.cpp \
	../../src/objs/DoPackedArray.cpp \
	../../src/objs/DoProcedure.cpp \
	../../src/objs/_DoStack.cpp \
	../../src/objs/DoString.cpp \
	../../src/oprds/DoOpArithmetic.cpp \
	../../src/oprds/DoOpArray.cpp \
	../../src/oprds/DoOpBoolean.cpp \
	../../src/oprds/DoOpControl.cpp \
	../../src/oprds/DoOpCoordinateMatrix.cpp \
	../../src/oprds/DoOpDeviceOutput.cpp \
	../../src/oprds/DoOpDictionary.cpp \
	../../src/oprds/DoOpFileRes.cpp \
	../../src/oprds/DoOpFont.cpp \
	../../src/oprds/DoOpGrphStateDD.cpp \
	../../src/oprds/DoOpGrphStateDI.cpp \
	../../src/oprds/DoOpMiscellaneous.cpp \
	../../src/oprds/DoOpPackedArray.cpp \
	../../src/oprds/DoOpPaint.cpp \
	../../src/oprds/DoOpPath.cpp \
	../../src/oprds/DoOpStack.cpp \
	../../src/oprds/DoOpString.cpp \
	../../src/oprds/DoOpType.cpp \
	../../src/parser/DevilInterpreter.cpp \
	../../src/parser/DevilSemantic.cpp \
	../../src/parser/PostscriptDoc.cpp \
	deviljni.cpp 

LOCAL_LDLIBS := -llog -lstdc++ -lz -ljnigraphics \
	-L../../../../Thirdparty/skia-dev/trunk-android/trunk/out/Debug \
	-lskia_core \
	-lskia_effects \
	-lskia_gr \
	-lskia_images \
	-lskia_opts \
	-lskia_opts_neon \
	-lskia_pdf \
	-lfreetype \
	-lskia_ports \
	-lskia_core \
	-lskia_sfnt \
	-lskia_skgr \
	-lskia_utils \
	-lskia_views \
	-lskia_xml \
	-lpng \
	-lfreetype \
	-lexpat \
	-lgif \

include $(BUILD_SHARED_LIBRARY)
